package com.liuhuxiang.order.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author liuhuxiang
 * @version: StockService.java, 2023年03月09日 下午7:03 liuhuxiang  Exp $
 */
@FeignClient(value="alibaba-stock-seata",path = "/stock")
public interface StockService {

    @RequestMapping("/reduct")
    public String reduct(@RequestParam(value="productId") Integer productId);

}